home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 July / EnigmA AMIGA RUN 09 (1996)(G.R. Edizioni)(IT)[!][issue 1996-07 & 08][EARSAN CD VIII].iso / earcd / util3 / fiflb382.lha / configure next >
Text File  |  1995-12-13  |  27KB  |  840 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.4 
  5. # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/gnu
  13. # Any additions from configure.in:
  14.  
  15. # Initialize some variables set by options.
  16. # The variables have the same names as the options, with
  17. # dashes changed to underlines.
  18. build=NONE
  19. cache_file=./config.cache
  20. exec_prefix=NONE
  21. host=NONE
  22. no_create=
  23. nonopt=NONE
  24. no_recursion=
  25. prefix=NONE
  26. program_prefix=NONE
  27. program_suffix=NONE
  28. program_transform_name=s,x,x,
  29. silent=
  30. site=
  31. srcdir=
  32. target=NONE
  33. verbose=
  34. x_includes=NONE
  35. x_libraries=NONE
  36.  
  37. # Initialize some other variables.
  38. subdirs=
  39.  
  40. ac_prev=
  41. for ac_option
  42. do
  43.  
  44.   # If the previous option needs an argument, assign it.
  45.   if test -n "$ac_prev"; then
  46.     eval "$ac_prev=\$ac_option"
  47.     ac_prev=
  48.     continue
  49.   fi
  50.  
  51.   case "$ac_option" in
  52.   -*=*) ac_optarg=`/bin/echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  53.   *) ac_optarg= ;;
  54.   esac
  55.  
  56.   # Accept the important Cygnus configure options, so we can diagnose typos.
  57.  
  58.   case "$ac_option" in
  59.  
  60.   -build | --build | --buil | --bui | --bu | --b)
  61.     ac_prev=build ;;
  62.   -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  63.     build="$ac_optarg" ;;
  64.  
  65.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  66.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  67.     ac_prev=cache_file ;;
  68.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  69.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  70.     cache_file="$ac_optarg" ;;
  71.  
  72.   -disable-* | --disable-*)
  73.     ac_feature=`/bin/echo $ac_option|sed -e 's/-*disable-//'`
  74.     # Reject names that are not valid shell variable names.
  75.     if test -n "`/bin/echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  76.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  77.     fi
  78.     ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
  79.     eval "enable_${ac_feature}=no" ;;
  80.  
  81.   -enable-* | --enable-*)
  82.     ac_feature=`/bin/echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  83.     # Reject names that are not valid shell variable names.
  84.     if test -n "`/bin/echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  85.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  86.     fi
  87.     ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
  88.     case "$ac_option" in
  89.       *=*) ;;
  90.       *) ac_optarg=yes ;;
  91.     esac
  92.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  93.  
  94.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  95.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  96.   | --exec | --exe | --ex)
  97.     ac_prev=exec_prefix ;;
  98.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  99.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  100.   | --exec=* | --exe=* | --ex=*)
  101.     exec_prefix="$ac_optarg" ;;
  102.  
  103.   -gas | --gas | --ga | --g)
  104.     # Obsolete; use --with-gas.
  105.     with_gas=yes ;;
  106.  
  107.   -help | --help | --hel | --he)
  108.     # Omit some internal or obsolete options to make the list less imposing.
  109.     # This message is too long to be a string in the A/UX 3.1 sh.
  110.     cat << EOF
  111. Usage: configure [options] [host]
  112. Options: [defaults in brackets after descriptions]
  113. Configuration:
  114.   --cache-file=FILE       cache test results in FILE
  115.   --help                  print this message
  116.   --no-create             do not create output files
  117.   --quiet, --silent       do not print \`checking...' messages
  118.   --version               print the version of autoconf that created configure
  119. Directory and file names:
  120.   --prefix=PREFIX         install architecture-independent files in PREFIX
  121.                           [$ac_default_prefix]
  122.   --exec-prefix=PREFIX    install architecture-dependent files in PREFIX
  123.                           [same as prefix]
  124.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  125.   --program-prefix=PREFIX prepend PREFIX to installed program names
  126.   --program-suffix=SUFFIX append SUFFIX to installed program names
  127.   --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  128. Host type:
  129.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  130.   --host=HOST             configure for HOST [guessed]
  131.   --target=TARGET         configure for TARGET [TARGET=HOST]
  132. Features and packages:
  133.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  134.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  135.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  136.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  137.   --x-includes=DIR        X include files are in DIR
  138.   --x-libraries=DIR       X library files are in DIR
  139. --enable and --with options recognized:$ac_help
  140. EOF
  141.     exit 0 ;;
  142.  
  143.   -host | --host | --hos | --ho)
  144.     ac_prev=host ;;
  145.   -host=* | --host=* | --hos=* | --ho=*)
  146.     host="$ac_optarg" ;;
  147.  
  148.   -nfp | --nfp | --nf)
  149.     # Obsolete; use --without-fp.
  150.     with_fp=no ;;
  151.  
  152.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  153.   | --no-cr | --no-c)
  154.     no_create=yes ;;
  155.  
  156.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  157.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  158.     no_recursion=yes ;;
  159.  
  160.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  161.     ac_prev=prefix ;;
  162.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  163.     prefix="$ac_optarg" ;;
  164.  
  165.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  166.   | --program-pre | --program-pr | --program-p)
  167.     ac_prev=program_prefix ;;
  168.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  169.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  170.     program_prefix="$ac_optarg" ;;
  171.  
  172.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  173.   | --program-suf | --program-su | --program-s)
  174.     ac_prev=program_suffix ;;
  175.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  176.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  177.     program_suffix="$ac_optarg" ;;
  178.  
  179.   -program-transform-name | --program-transform-name \
  180.   | --program-transform-nam | --program-transform-na \
  181.   | --program-transform-n | --program-transform- \
  182.   | --program-transform | --program-transfor \
  183.   | --program-transfo | --program-transf \
  184.   | --program-trans | --program-tran \
  185.   | --progr-tra | --program-tr | --program-t)
  186.     ac_prev=program_transform_name ;;
  187.   -program-transform-name=* | --program-transform-name=* \
  188.   | --program-transform-nam=* | --program-transform-na=* \
  189.   | --program-transform-n=* | --program-transform-=* \
  190.   | --program-transform=* | --program-transfor=* \
  191.   | --program-transfo=* | --program-transf=* \
  192.   | --program-trans=* | --program-tran=* \
  193.   | --progr-tra=* | --program-tr=* | --program-t=*)
  194.     program_transform_name="$ac_optarg" ;;
  195.  
  196.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  197.   | -silent | --silent | --silen | --sile | --sil)
  198.     silent=yes ;;
  199.  
  200.   -site | --site | --sit)
  201.     ac_prev=site ;;
  202.   -site=* | --site=* | --sit=*)
  203.     site="$ac_optarg" ;;
  204.  
  205.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  206.     ac_prev=srcdir ;;
  207.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  208.     srcdir="$ac_optarg" ;;
  209.  
  210.   -target | --target | --targe | --targ | --tar | --ta | --t)
  211.     ac_prev=target ;;
  212.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  213.     target="$ac_optarg" ;;
  214.  
  215.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  216.     verbose=yes ;;
  217.  
  218.   -version | --version | --versio | --versi | --vers)
  219.     echo "configure generated by autoconf version 2.4"
  220.     exit 0 ;;
  221.  
  222.   -with-* | --with-*)
  223.     ac_package=`/bin/echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  224.     # Reject names that are not valid shell variable names.
  225.     if test -n "`/bin/echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  226.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  227.     fi
  228.     ac_package=`/bin/echo $ac_package| sed 's/-/_/g'`
  229.     case "$ac_option" in
  230.       *=*) ;;
  231.       *) ac_optarg=yes ;;
  232.     esac
  233.     eval "with_${ac_package}='$ac_optarg'" ;;
  234.  
  235.   -without-* | --without-*)
  236.     ac_package=`/bin/echo $ac_option|sed -e 's/-*without-//'`
  237.     # Reject names that are not valid shell variable names.
  238.     if test -n "`/bin/echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  239.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  240.     fi
  241.     ac_package=`/bin/echo $ac_package| sed 's/-/_/g'`
  242.     eval "with_${ac_package}=no" ;;
  243.  
  244.   --x)
  245.     # Obsolete; use --with-x.
  246.     with_x=yes ;;
  247.  
  248.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  249.   | --x-incl | --x-inc | --x-in | --x-i)
  250.     ac_prev=x_includes ;;
  251.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  252.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  253.     x_includes="$ac_optarg" ;;
  254.  
  255.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  256.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  257.     ac_prev=x_libraries ;;
  258.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  259.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  260.     x_libraries="$ac_optarg" ;;
  261.  
  262.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  263.     ;;
  264.  
  265.   *) 
  266.     if test -n "`/bin/echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  267.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  268.     fi
  269.     if test "x$nonopt" != xNONE; then
  270.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  271.     fi
  272.     nonopt="$ac_option"
  273.     ;;
  274.  
  275.   esac
  276. done
  277.  
  278. if test -n "$ac_prev"; then
  279.   { echo "configure: error: missing argument to --`/bin/echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  280. fi
  281.  
  282. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  283.  
  284. # File descriptor usage:
  285. # 0 standard input
  286. # 1 file creation
  287. # 2 errors and warnings
  288. # 3 some systems may open it to /dev/tty
  289. # 4 used on the Kubota Titan
  290. # 6 checking for... messages and results
  291. # 5 compiler messages saved in config.log
  292. if test "$silent" = yes; then
  293.   exec 6>/dev/null
  294. else
  295.   exec 6>&1
  296. fi
  297. exec 5>./config.log
  298.  
  299. echo "\
  300. This file contains any messages produced by compilers while
  301. running configure, to aid debugging if configure makes a mistake.
  302. " 1>&5
  303.  
  304. # Strip out --no-create and --no-recursion so they do not pile up.
  305. # Also quote any args containing shell metacharacters.
  306. ac_configure_args=
  307. for ac_arg
  308. do
  309.   case "$ac_arg" in
  310.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  311.   | --no-cr | --no-c) ;;
  312.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  313.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  314.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  315.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  316.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  317.   esac
  318. done
  319.  
  320. # NLS nuisances.
  321. # Only set LANG and LC_ALL to C if already set.
  322. # These must not be set unconditionally because not all systems understand
  323. # e.g. LANG=C (notably SCO).
  324. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  325. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  326.  
  327. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  328. rm -rf conftest* confdefs.h
  329. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  330. /bin/echo > confdefs.h
  331.  
  332. # A filename unique to this package, relative to the directory that
  333. # configure is in, which we can look for to find out if srcdir is correct.
  334. ac_unique_file=fifo-handler.c
  335.  
  336. # Find the source files, if location was not specified.
  337. if test -z "$srcdir"; then
  338.   ac_srcdir_defaulted=yes
  339.   # Try the directory containing this script, then its parent.
  340.   ac_prog=$0
  341.   ac_confdir=`/bin/echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  342.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  343.   srcdir=$ac_confdir
  344.   if test ! -r $srcdir/$ac_unique_file; then
  345.     srcdir=..
  346.   fi
  347. else
  348.   ac_srcdir_defaulted=no
  349. fi
  350. if test ! -r $srcdir/$ac_unique_file; then
  351.   if test "$ac_srcdir_defaulted" = yes; then
  352.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  353.   else
  354.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  355.   fi
  356. fi
  357. srcdir=`/bin/echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  358.  
  359. # Prefer explicitly selected file to automatically selected ones.
  360. if test -z "$CONFIG_SITE"; then
  361.   if test "x$prefix" != xNONE; then
  362.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  363.   else
  364.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  365.   fi
  366. fi
  367. for ac_site_file in $CONFIG_SITE; do
  368.   if test -r "$ac_site_file"; then
  369.     echo "loading site script $ac_site_file"
  370.     . "$ac_site_file"
  371.   fi
  372. done
  373.  
  374. if test -r "$cache_file"; then
  375.   echo "loading cache $cache_file"
  376.   . $cache_file
  377. else
  378.   echo "creating cache $cache_file"
  379.   > $cache_file
  380. fi
  381.  
  382. ac_ext=c
  383. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  384. ac_cpp='$CPP $CPPFLAGS'
  385. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
  386. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
  387.  
  388. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  389.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  390.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  391.     ac_n= ac_c='
  392. ' ac_t='    '
  393.   else
  394.     ac_n=-n ac_c= ac_t=
  395.   fi
  396. else
  397.   ac_n= ac_c='\c' ac_t=
  398. fi
  399.  
  400.  
  401.  
  402. # Extract the first word of "gcc", so it can be a program name with args.
  403. set dummy gcc; ac_word=$2
  404. /bin/echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  405. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  406.   /bin/echo $ac_n "(cached) $ac_c" 1>&6
  407. else
  408.   if test -n "$CC"; then
  409.   ac_cv_prog_CC="$CC" # Let the user override the test.
  410. else
  411.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  412.   for ac_dir in $PATH; do
  413.     test -z "$ac_dir" && ac_dir=.
  414.     if test -f $ac_dir/$ac_word; then
  415.       ac_cv_prog_CC="gcc"
  416.       break
  417.     fi
  418.   done
  419.   IFS="$ac_save_ifs"
  420.   test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
  421. fi
  422. fi
  423. CC="$ac_cv_prog_CC"
  424. if test -n "$CC"; then
  425.   /bin/echo "$ac_t""$CC" 1>&6
  426. else
  427.   /bin/echo "$ac_t""no" 1>&6
  428. fi
  429.  
  430.  
  431. /bin/echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  432. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  433.   /bin/echo $ac_n "(cached) $ac_c" 1>&6
  434. else
  435.   cat > conftest.c <<EOF
  436. #ifdef __GNUC__
  437.   yes;
  438. #endif
  439. EOF
  440. if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
  441.   ac_cv_prog_gcc=yes
  442. else
  443.   ac_cv_prog_gcc=no
  444. fi
  445. fi
  446. /bin/echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  447. if test $ac_cv_prog_gcc = yes; then
  448.   GCC=yes
  449.   if test "${CFLAGS+set}" != set; then
  450.     /bin/echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  451. if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  452.   /bin/echo $ac_n "(cached) $ac_c" 1>&6
  453. else
  454.   echo 'void f(){}' > conftest.c
  455. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  456.   ac_cv_prog_gcc_g=yes
  457. else
  458.   ac_cv_prog_gcc_g=no
  459. fi
  460. rm -f conftest*
  461.  
  462. fi
  463.     /bin/echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  464.     if test $ac_cv_prog_gcc_g = yes; then
  465.       # Amiga hack - default to using -O2
  466.       # Also suppress default use of -g
  467.       CFLAGS="-O2"
  468.     else
  469.       CFLAGS="-O2"
  470.     fi
  471.   fi
  472. else
  473.   GCC=
  474.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  475. fi
  476.  
  477. /bin/echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  478. # On Suns, sometimes $CPP names a directory.
  479. if test -n "$CPP" && test -d "$CPP"; then
  480.   CPP=
  481. fi
  482. if test -z "$CPP"; then
  483. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  484.   /bin/echo $ac_n "(cached) $ac_c" 1>&6
  485. else
  486.     # This must be in double quotes, not single quotes, because CPP may get
  487.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  488.   CPP="${CC-cc} -E"
  489.   # On the NeXT, cc -E runs the code through the compiler's parser,
  490.   # not just through cpp.
  491.   cat > conftest.$ac_ext <<EOF
  492. #line 493 "configure"
  493. #include "confdefs.h"
  494. #include <assert.h>
  495. Syntax Error
  496. EOF
  497. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  498. ac_err=`grep -v '^ *+' conftest.out`
  499. if test -z "$ac_err"; then
  500.   :
  501. else
  502.   /bin/echo "$ac_err" >&5
  503.   rm -rf conftest*
  504.   CPP="${CC-cc} -E -traditional-cpp"
  505.   cat > conftest.$ac_ext <<EOF
  506. #line 507 "configure"
  507. #include "confdefs.h"
  508. #include <assert.h>
  509. Syntax Error
  510. EOF
  511. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  512. ac_err=`grep -v '^ *+' conftest.out`
  513. if test -z "$ac_err"; then
  514.   :
  515. else
  516.   /bin/echo "$ac_err" >&5
  517.   rm -rf conftest*
  518.   CPP=/lib/cpp
  519. fi
  520. rm -f conftest*
  521. fi
  522. rm -f conftest*
  523.   ac_cv_prog_CPP="$CPP"
  524. fi
  525.   CPP="$ac_cv_prog_CPP"
  526. else
  527.   ac_cv_prog_CPP="$CPP"
  528. fi
  529. /bin/echo "$ac_t""$CPP" 1>&6
  530.  
  531. if test $ac_cv_prog_gcc = yes; then
  532.   /bin/echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
  533. if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
  534.   /bin/echo $ac_n "(cached) $ac_c" 1>&6
  535. else
  536.     ac_pattern="Autoconf.*'x'"
  537.   cat > conftest.$ac_ext <<EOF
  538. #line 539 "configure"
  539. #include "confdefs.h"
  540. #include <sgtty.h>
  541. Autoconf TIOCGETP
  542. EOF
  543. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  544.   egrep "$ac_pattern" >/dev/null 2>&1; then
  545.   rm -rf conftest*
  546.   ac_cv_prog_gcc_traditional=yes
  547. else
  548.   rm -rf conftest*
  549.   ac_cv_prog_gcc_traditional=no
  550. fi
  551. rm -f conftest*
  552.  
  553.  
  554.   if test $ac_cv_prog_gcc_traditional = no; then
  555.     cat > conftest.$ac_ext <<EOF
  556. #line 557 "configure"
  557. #include "confdefs.h"
  558. #include <termio.h>
  559. Autoconf TCGETA
  560. EOF
  561. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  562.   egrep "$ac_pattern" >/dev/null 2>&1; then
  563.   rm -rf conftest*
  564.   ac_cv_prog_gcc_traditional=yes
  565. fi
  566. rm -f conftest*
  567.  
  568.   fi
  569. fi
  570.   /bin/echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
  571.   if test $ac_cv_prog_gcc_traditional = yes; then
  572.     CC="$CC -traditional"
  573.   fi
  574. fi
  575.  
  576. ac_aux_dir=
  577. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  578.   if test -f $ac_dir/install-sh; then
  579.     ac_aux_dir=$ac_dir
  580.     ac_install_sh="$ac_aux_dir/install-sh -c"
  581.     break
  582.   elif test -f $ac_dir/install.sh; then
  583.     ac_aux_dir=$ac_dir
  584.     ac_install_sh="$ac_aux_dir/install.sh -c"
  585.     break
  586.   fi
  587. done
  588. if test -z "$ac_aux_dir"; then
  589.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  590. fi
  591. ac_config_guess=$ac_aux_dir/config.guess
  592. ac_config_sub=$ac_aux_dir/config.sub
  593. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  594.  
  595. # Find a good install program.  We prefer a C program (faster),
  596. # so one script is as good as another.  But avoid the broken or
  597. # incompatible versions:
  598. # SysV /etc/install, /usr/sbin/install
  599. # SunOS /usr/etc/install
  600. # IRIX /sbin/install
  601. # AIX /bin/install
  602. # AmigaDOS /c/install
  603. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  604. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  605. # ./install, which can be erroneously created by make from ./install.sh.
  606. /bin/echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  607. if test -z "$INSTALL"; then
  608. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  609.   /bin/echo $ac_n "(cached) $ac_c" 1>&6
  610. else
  611.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  612.   for ac_dir in $PATH; do
  613.     # Account for people who put trailing slashes in PATH elements.
  614.     case "$ac_dir/" in
  615.     /|./|.//|/c/*) ;;
  616.     *)
  617.       # OSF1 and SCO ODT 3.0 have their own names for install.
  618.       for ac_prog in ginstall installbsd scoinst install; do
  619.         if test -f $ac_dir/$ac_prog; then
  620.       if test $ac_prog = install &&
  621.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  622.         # AIX install.  It has an incompatible calling convention.
  623.         # OSF/1 installbsd also uses dspmsg, but is usable.
  624.         :
  625.       else
  626.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  627.         break 2
  628.       fi
  629.     fi
  630.       done
  631.       ;;
  632.     esac
  633.   done
  634.   IFS="$ac_save_ifs"
  635.   # As a last resort, use the slow shell script.
  636.   test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
  637. fi
  638.   INSTALL="$ac_cv_path_install"
  639. fi
  640. /bin/echo "$ac_t""$INSTALL" 1>&6
  641.  
  642. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  643. # It thinks the first close brace ends the variable substitution.
  644. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  645.  
  646. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  647.  
  648.  
  649. trap '' 1 2 15
  650. cat > confcache <<\EOF
  651. # This file is a shell script that caches the results of configure
  652. # tests run on this system so they can be shared between configure
  653. # scripts and configure runs.  It is not useful on other systems.
  654. # If it contains results you don't want to keep, you may remove or edit it.
  655. #
  656. # By default, configure uses ./config.cache as the cache file,
  657. # creating it if it does not exist already.  You can give configure
  658. # the --cache-file=FILE option to use a different cache file; that is
  659. # what configure does when it calls configure scripts in
  660. # subdirectories, so they share the cache.
  661. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  662. # config.status only pays attention to the cache file if you give it the
  663. # --recheck option to rerun configure.
  664. #
  665. EOF
  666. # Ultrix sh set writes to stderr and can't be redirected directly,
  667. # and sets the high bit in the cache file unless we assign to the vars.
  668. (set) 2>&1 |
  669.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  670.   >> confcache
  671. if cmp -s $cache_file confcache; then
  672.   :
  673. else
  674.   if test -w $cache_file; then
  675.     echo "updating cache $cache_file"
  676.     cat confcache > $cache_file
  677.   else
  678.     echo "not updating unwritable cache $cache_file"
  679.   fi
  680. fi
  681. rm -f confcache
  682.  
  683. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  684.  
  685. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  686. # Let make expand exec_prefix.
  687. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  688.  
  689. # Any assignment to VPATH causes Sun make to only execute
  690. # the first set of double-colon rules, so remove it if not needed.
  691. # If there is a colon in the path, we need to keep it.
  692. if test "x$srcdir" = x.; then
  693.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  694. fi
  695.  
  696. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  697.  
  698. # Transform confdefs.h into DEFS.
  699. # Protect against shell expansion while executing Makefile rules.
  700. # Protect against Makefile macro expansion.
  701. cat > conftest.defs <<\EOF
  702. s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g
  703. s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
  704. s%\[%\\&%g
  705. s%\]%\\&%g
  706. s%\$%$$%g
  707. EOF
  708. DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  709. rm -f conftest.defs
  710.  
  711.  
  712. # Without the "./", some shells look in PATH for config.status.
  713. : ${CONFIG_STATUS=./config.status}
  714.  
  715. echo creating $CONFIG_STATUS
  716. # Some systems, like AmigaDOS, won't allow you to remove a script that is
  717. # being executed, so just move it out of the way instead.
  718. if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  719. cat > $CONFIG_STATUS <<EOF
  720. #! /bin/sh
  721. # Generated automatically by configure.
  722. # Run this file to recreate the current configuration.
  723. # This directory was configured as follows,
  724. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  725. #
  726. # $0 $ac_configure_args
  727. #
  728. # Compiler output produced by configure, useful for debugging
  729. # configure, is in ./config.log if it exists.
  730.  
  731. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  732. for ac_option
  733. do
  734.   case "\$ac_option" in
  735.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  736.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  737.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  738.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  739.     /bin/echo "$CONFIG_STATUS generated by autoconf version 2.4"
  740.     exit 0 ;;
  741.   -help | --help | --hel | --he | --h)
  742.     echo "\$ac_cs_usage"; exit 0 ;;
  743.   *) echo "\$ac_cs_usage"; exit 1 ;;
  744.   esac
  745. done
  746.  
  747. ac_given_srcdir=$srcdir
  748. ac_given_INSTALL="$INSTALL"
  749.  
  750. trap 'rm -fr `/bin/echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  751.  
  752. # Protect against being on the right side of a sed subst in config.status. 
  753. sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; 
  754.  s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
  755. $ac_vpsub
  756. $extrasub
  757. s%@CFLAGS@%$CFLAGS%g
  758. s%@CPPFLAGS@%$CPPFLAGS%g
  759. s%@CXXFLAGS@%$CXXFLAGS%g
  760. s%@DEFS@%$DEFS%g
  761. s%@LDFLAGS@%$LDFLAGS%g
  762. s%@LIBS@%$LIBS%g
  763. s%@exec_prefix@%$exec_prefix%g
  764. s%@prefix@%$prefix%g
  765. s%@program_transform_name@%$program_transform_name%g
  766. s%@CC@%$CC%g
  767. s%@CPP@%$CPP%g
  768. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  769. s%@INSTALL_DATA@%$INSTALL_DATA%g
  770.  
  771. CEOF
  772. EOF
  773. cat >> $CONFIG_STATUS <<EOF
  774.  
  775. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  776. EOF
  777. cat >> $CONFIG_STATUS <<\EOF
  778. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  779.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  780.   case "$ac_file" in
  781.   *:*) ac_file_in=`/bin/echo "$ac_file"|sed 's%.*:%%'`
  782.        ac_file=`/bin/echo "$ac_file"|sed 's%:.*%%'` ;;
  783.   *) ac_file_in="${ac_file}.in" ;;
  784.   esac
  785.  
  786.   # Adjust relative srcdir, etc. for subdirectories.
  787.  
  788.   # Remove last slash and all that follows it.  Not all systems have dirname.
  789.   ac_dir=`/bin/echo $ac_file|sed 's%/[^/][^/]*$%%'`
  790.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  791.     # The file is in a subdirectory.
  792.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  793.     ac_dir_suffix="/`/bin/echo $ac_dir|sed 's%^\./%%'`"
  794.     # A "../" for each directory in $ac_dir_suffix.
  795.     ac_dots=`/bin/echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  796.   else
  797.     ac_dir_suffix= ac_dots=
  798.   fi
  799.  
  800.   case "$ac_given_srcdir" in
  801.   .)  srcdir=.
  802.       if test -z "$ac_dots"; then top_srcdir=.
  803.       else top_srcdir=`/bin/echo $ac_dots|sed 's%/$%%'`; fi ;;
  804.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  805.   *) # Relative path.
  806.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  807.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  808.   esac
  809.  
  810.   case "$ac_given_INSTALL" in
  811.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  812.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  813.   esac
  814.   echo creating "$ac_file"
  815.   rm -f "$ac_file"
  816.   configure_input="Generated automatically from `/bin/echo $ac_file_in|sed 's%.*/%%'` by configure."
  817.   case "$ac_file" in
  818.   *Makefile*) ac_comsub="1i\\
  819. # $configure_input" ;;
  820.   *) ac_comsub= ;;
  821.   esac
  822.   sed -e "$ac_comsub
  823. s%@configure_input@%$configure_input%g
  824. s%@srcdir@%$srcdir%g
  825. s%@top_srcdir@%$top_srcdir%g
  826. s%@INSTALL@%$INSTALL%g
  827. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  828. fi; done
  829. rm -f conftest.subs
  830.  
  831.  
  832.  
  833. exit 0
  834. EOF
  835. chmod +x $CONFIG_STATUS
  836. rm -f CONFIG.STATUS.old
  837. rm -fr confdefs* $ac_clean_files
  838. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  839.  
  840.